home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match="/">
- <html>
- <head>
- <title>game shadow beta test site</title>
-
- <style>
- body {
- background: #E4D3C5;
- scrollbar-face-color: #D9C4B2;
- scrollbar-shadow-color: #D9C4B2;
- scrollbar-highlight-color: #E4D2C4;
- scrollbar-3dlight-color: #C5A994;
- scrollbar-darkshadow-color: #C3A893;
- scrollbar-track-color: #DFCCBC;
- scrollbar-arrow-color: EADDD2;
- }
-
- p {
- font-family: verdana, sans-serif;
- font-size: 11px;
- color: #000000;
- }
-
- table.display {
- FONT-FAMILY: verdana, sans-serif;
- FONT-SIZE: 11px;
- border-width: 1px;
- border-collapse: collapse;
- }
-
- td {
- background: #E4D3C5;
- vertical-align: top;
- border-width: 1px;
- text-align: center;
- padding: 3px,3px,3px,3px;
- spacing: 0px,0px,0px,0px;
- }
-
- td.game {
- background: #E4D3C5;
- vertical-align: top;
- text-align: left;
- border-width: 1px;
- padding: 2px,2px,2px,2px;
- spacing: 0px,0px,0px,0px;
- }
-
- td.header {
- background-image: url(images/vmc_top.gif);
- text-align: left;
- height: 33;
- vertical-align: center;
- font-family: verdana, sans-serif;
- font-size: 11px;
- color: #FFFFFF;
-
- }
-
- td.subheader {
- background-image: url(images/vmc_middle.gif);
- height: 20;
- white-space: no-wrap;
- }
-
-
- td.subheader_game {
- background-image: url(images/vmc_middle.gif);
- white-space: no-wrap;
- vertical-align: top;
- text-align: left;
- border-width: 0px;
- padding: 2px,2px,2px,2px;
- spacing: 4px,4px,4px,4px;
- }
-
- td.patch_old {
- background: #e4d3c5;
- color: #a38a76;
- border-bottom: 1px solid #C7B9AC;
- }
-
- td.patch_cur {
- background: #c7b9ac;
- color: #ffffff;
- border-bottom: 1px solid #918173;
- }
-
- td.patch_new {
- background: #5a5f9f;
- color: #ffffff;
- border-bottom: 1px solid #C7B9AC;
- }
-
- td.patch_any {
- background: #c7b9ac;
- color: #000000;
- border-bottom: 1px solid #918173;
- }
-
- td.patch_xxx {
- background: #959595;
- color: #000000;
- border-bottom: 1px solid #918173;
- }
-
- td.action {
- background: #bd1b1b;
- color: #ffffff;
- }
-
- td.unknown {
- background: #959595;
- color: #ffffff;
- }
-
- div {
- align: center;
- }
-
- a:link {
- text-decoration: none;
- color: #660000;
- }
-
- a:visited {
- text-decoration: none;
- color: #993333;
- }
-
- a:hover {
- text-decoration: underline;
- color: #993333;
- }
-
- a:active {
- text-decoration: none;
- color: #660000;
- }
-
- .menuskin{
- position:absolute;
- width:100px;
- background-color:#ECECEC;
- border:1px solid black;
- font:normal 11px verdana;
- line-height:14px;
- z-index:500;
- visibility:hidden;
- }
-
- .menuskin a{
- text-decoration:none;
- color:black;
- padding-left:0px;
- padding-right:0px;
- }
-
- #mouseoverstyle{
- background-color:#666666;
- }
-
- #mouseoverstyle a{
- color:white;
- }
- </style>
-
- <script language="JavaScript1.2" src="dd-popit.js"></script>
- <script language="JavaScript">
- document.oncontextmenu=new Function("return false")
-
- function clicker(elID) {
-
- toggle(document.all[elID.id + 'lst']);
-
- if (document.all[elID.id + 'lst'].style.display == "none") {
- elID.src = "images\\expand.gif"
- elID.title = "Expand patch list"
- }
- else {
- elID.src = "images\\collapse.gif"
- elID.title = "Collapse patch list"
- }
-
- }
-
- function toggle(elID) {
- if (String(elID.style) != "undefined") {
- if (elID.style.display == "none")
- elID.style.display = "inline";
- else
- elID.style.display = "none";
- }
- }
- </script>
- </head>
- <body topmargin="0" bottommargin="0" leftmargin="3" rightmargin="3">
- <img src="images/_vmclegend.gif" />
- <xsl:for-each select="gms_clientdata">
- <xsl:choose>
- <xsl:when test="count(c)='0'"><p>No games located</p></xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="c">
- <xsl:variable name="computer_id">c<xsl:value-of select="@c_name" /></xsl:variable>
- <xsl:variable name="computer_loc"><xsl:value-of select="@c_local" /></xsl:variable>
- <xsl:variable name="game_count"><xsl:value-of select="count(.//a[@a_manage='1' and @a_type='2'])"/></xsl:variable>
- <xsl:variable name="game_count_text"><xsl:value-of select="$game_count"/> game<xsl:choose><xsl:when test="$game_count!=1">s</xsl:when></xsl:choose></xsl:variable>
- <xsl:variable name="demo_count"><xsl:value-of select="count(.//a[@a_manage='1' and @a_type='6'])"/></xsl:variable>
- <xsl:variable name="demo_count_text"><xsl:value-of select="$demo_count"/> demo<xsl:choose><xsl:when test="$demo_count!=1">s</xsl:when></xsl:choose></xsl:variable>
- <xsl:variable name="summary"><xsl:choose><xsl:when test="$game_count>'0'"><xsl:value-of select="$game_count_text"/></xsl:when></xsl:choose><xsl:choose><xsl:when test="$game_count>'0' and $demo_count>'0'"> and </xsl:when></xsl:choose><xsl:choose><xsl:when test="$demo_count>'0'"><xsl:value-of select="$demo_count_text"/></xsl:when></xsl:choose> installed</xsl:variable>
- <p>
- <table width="500" class="display">
- <tr>
- <td colspan="10" class="header">
- <xsl:choose>
- <xsl:when test="$computer_loc='1'">
- <img border="0" align="absmiddle" src="images\vmc_pc_icon.gif"></img>
- </xsl:when>
- <xsl:otherwise>
- <img border="0" align="absmiddle" src="images\network.gif"></img>
- </xsl:otherwise>
- </xsl:choose>
- <B>
-
- <xsl:element name="a">
- <xsl:attribute name="href">javascript:toggle(document.all.<xsl:value-of select="$computer_id"/>);</xsl:attribute>
- <xsl:element name="font">
- <xsl:attribute name="color">#FFFFF</xsl:attribute>
- <xsl:value-of select="@c_name" />
- </xsl:element>
- </xsl:element>
- </B>
- - (<xsl:value-of select="$summary"/>)
- </td>
- </tr>
- </table>
- <xsl:element name="span">
- <xsl:attribute name="id"><xsl:value-of select="$computer_id"/></xsl:attribute>
- <table width="500" class="display">
- <tr>
- <td class="subheader" width="10"> </td>
- <td class="subheader_game" width="155">Game Name</td>
- <td class="subheader" width="60" align="center"><div>Version </div></td>
- <td class="subheader" width="60" align="center"><div>Start Ver.</div></td>
- <td class="subheader" width="60" align="center"><div>End Ver.</div></td>
- <td class="subheader" width="60" align="center"><div>Filesize</div></td>
- <td class="subheader" align="center" width="18"><div></div></td>
- <td class="subheader" align="center" width="18"><div></div></td>
- <td class="subheader" align="center" width="20"><div></div></td>
- <td class="subheader"></td>
- </tr>
- <xsl:for-each select="m">
- <xsl:for-each select="d">
- <xsl:for-each select="a[@a_manage='1']">
- <xsl:variable name="app_id">c<xsl:value-of select="../../../@c_id" />m<xsl:value-of select="../../@m_id" />d<xsl:value-of select="../@d_id" />a<xsl:value-of select="@a_id" /></xsl:variable>
- <xsl:variable name="patch_count" select="count(./u)"/>
- <xsl:variable name="patch_avail" select="count(./u[@u_status='cur' or @u_status='any'])"/>
- <tr>
- <td width="10">
- <xsl:choose>
- <xsl:when test="$patch_count>0">
- <xsl:element name="a">
- <xsl:attribute name="href">javascript:clicker(<xsl:value-of select="$app_id"/>);</xsl:attribute>
- <xsl:element name="img">
- <xsl:attribute name="src">images\collapse.gif</xsl:attribute>
- <xsl:attribute name="title">Collapse patch list</xsl:attribute>
- <xsl:attribute name="id"><xsl:value-of select="$app_id"/></xsl:attribute>
- <xsl:attribute name="border">0</xsl:attribute>
- </xsl:element>
- </xsl:element>
- </xsl:when>
- <xsl:otherwise>
-  
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td width="155" class="game">
- <xsl:attribute name="title">
-
- <xsl:choose>
-
- <xsl:when test="$computer_loc='1'"><xsl:value-of select="../../@m_name" /><xsl:value-of select="../@d_text" /></xsl:when>
- <xsl:otherwise>[<xsl:value-of select="../../@m_name" />]$<xsl:value-of select="../@d_text" /></xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <xsl:value-of select="@a_name" />
- </td>
- <xsl:element name="td">
- <xsl:attribute name="width">60</xsl:attribute>
- <xsl:attribute name="class">
- <xsl:choose>
- <xsl:when test="@v_id='-1'">
- unknown
- </xsl:when>
- <xsl:when test="$patch_avail>0">
- action
- </xsl:when>
- </xsl:choose>
- </xsl:attribute>
- <xsl:value-of select="@v_name" />
- </xsl:element>
- <td width="228" colspan="6">
- <xsl:element name="span">
- <xsl:attribute name="id"><xsl:value-of select="$app_id"/>lst</xsl:attribute>
- <table width="278" class="display">
- <xsl:choose>
- <xsl:when test="@a_restricted='1'">
- Functionality only available to subscribers
- </xsl:when>
- <xsl:when test="$patch_count='0'">
- No known patches
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="u">
- <xsl:variable name="patch_status" select="@u_status"/>
- <tr>
- <xsl:element name="td">
- <xsl:attribute name="width">60</xsl:attribute>
- <xsl:attribute name="class">patch_<xsl:value-of select="$patch_status"/></xsl:attribute>
- <xsl:value-of select="@u_start_name" />
- </xsl:element>
- <xsl:element name="td">
- <xsl:attribute name="width">60</xsl:attribute>
- <xsl:attribute name="class">patch_<xsl:value-of select="$patch_status"/></xsl:attribute>
- <xsl:value-of select="@u_end_name" />
- </xsl:element>
- <xsl:element name="td">
- <xsl:attribute name="width">60</xsl:attribute>
- <xsl:attribute name="class">patch_<xsl:value-of select="$patch_status"/></xsl:attribute>
- <xsl:value-of select="@u_filesize_txt" />
- </xsl:element>
- <xsl:element name="td">
- <xsl:attribute name="width">16</xsl:attribute>
- <xsl:attribute name="align">center</xsl:attribute>
- <xsl:attribute name="class">patch_<xsl:value-of select="$patch_status"/></xsl:attribute>
-
- <xsl:choose>
- <xsl:when test="count(./l[@l_type!='1'])>'0'">
- <xsl:for-each select="l">
- <xsl:choose>
- <xsl:when test="@l_type!='1'">
- <xsl:element name="a">
- <xsl:attribute name="href">about:blank//<xsl:value-of select="@l_type"/>/x<xsl:value-of select="@l_id"/>x</xsl:attribute>
- <xsl:attribute name="title"><xsl:value-of select="@l_desc"/> for '<xsl:value-of select="../../@a_name"/>:<xsl:value-of select="../@u_name"/>'</xsl:attribute>
- <xsl:choose>
- <xsl:when test="@l_type=3">
- <img src="images\review.gif" width="16" height="16" border="0" />
- </xsl:when>
- <xsl:when test="@l_type=7">
- <img src="images\forum.gif" width="16" height="16" border="0" />
- </xsl:when>
- <xsl:otherwise>
- <img src="images\readme.gif" width="16" height="16" border="0" />
- </xsl:otherwise>
- </xsl:choose>
- </xsl:element>
- <BR/>
- </xsl:when>
- </xsl:choose>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- <img src="images\no_readme.gif" width="16" height="16" border="0" />
- </xsl:otherwise>
- </xsl:choose>
-
- </xsl:element>
- <xsl:element name="td">
- <xsl:attribute name="width">16</xsl:attribute>
- <xsl:attribute name="align">center</xsl:attribute>
- <xsl:attribute name="class">patch_<xsl:value-of select="$patch_status"/></xsl:attribute>
-
- <xsl:choose>
- <xsl:when test="count(./l)>'0'">
-
- <xsl:element name="div">
- <xsl:attribute name="style">display: none;</xsl:attribute>
- <xsl:attribute name="id"><xsl:value-of select="$app_id" />u<xsl:value-of select="@u_id" /></xsl:attribute>
- <xsl:choose>
- <xsl:when test="$patch_count>'0'">
- <xsl:for-each select="l">
- <xsl:choose>
- <xsl:when test="@l_type = '1'">
- <xsl:element name="a">
- <xsl:attribute name="href">about:blank//Download/x<xsl:value-of select="@l_id"/>x</xsl:attribute>
- <xsl:attribute name="title">Download '<xsl:value-of select="../../@a_name"/>:<xsl:value-of select="../@u_name"/>'</xsl:attribute>
- <xsl:value-of select="@l_server"/>
- <BR />
- </xsl:element>
- </xsl:when>
- </xsl:choose>
- </xsl:for-each>
- </xsl:when>
- </xsl:choose>
- </xsl:element>
- <xsl:element name="a">
- <xsl:attribute name="href">#</xsl:attribute>
- <xsl:attribute name="onMouseOver">showmenu(event, <xsl:value-of select="$app_id" />u<xsl:value-of select="@u_id" />.innerHTML);</xsl:attribute>
- <xsl:attribute name="onMouseOut">delayhidemenu();</xsl:attribute>
- <img src="images\download.gif" width="16" height="16" border="0" />
- </xsl:element>
- </xsl:when>
- <xsl:otherwise>
- <img src="images\no_download.gif" width="16" height="16" border="0" />
- </xsl:otherwise>
- </xsl:choose>
- </xsl:element>
- <xsl:element name="td">
- <xsl:attribute name="width">16</xsl:attribute>
- <xsl:attribute name="align">center</xsl:attribute>
- <xsl:attribute name="class">patch_<xsl:value-of select="$patch_status"/></xsl:attribute>
- <xsl:choose>
- <xsl:when test="$patch_count>'0'">
- <xsl:element name="a">
- <xsl:attribute name="href">about:blank//Install/x<xsl:value-of select="@u_id"/>x</xsl:attribute>
- <xsl:attribute name="title">Install '<xsl:value-of select="../@a_name"/>:<xsl:value-of select="@u_name"/>'</xsl:attribute>
- <img src="images\install.gif" width="16" height="16" border="0" />
- </xsl:element>
- </xsl:when>
- </xsl:choose>
- </xsl:element>
- </tr>
- </xsl:for-each><!-- For each u element-->
- </xsl:otherwise>
- </xsl:choose>
- </table>
- </xsl:element>
- </td>
- </tr>
- </xsl:for-each><!-- For each a element-->
- </xsl:for-each><!-- For each d element-->
- </xsl:for-each><!-- For each m element-->
- </table><br /><img src="images/rule.gif" />
- </xsl:element>
- </p>
- </xsl:for-each><!-- For each c element-->
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each><!-- For each installed-apps element-->
- <div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off'); dynamichide(event)" style="position: absolute; border: 1px solid black;"></div>
- </body>
- </html>
- </xsl:template>
- </xsl:stylesheet>